#ifndef _URL_SCHEMA_H_
#define _URL_SCHEMA_H_

#include "/usr/include/mysql/mysql.h"
#include "schema_manager.h"
#include <list>
using namespace std;



struct url_t;

struct url_schema_t
{
	bool quit;
	list<table_op_t*> table_ops[URL_SCHEMA_THREAD_COUNT];
	pthread_mutex_t lockers[URL_SCHEMA_THREAD_COUNT];
	pthread_cond_t conds[URL_SCHEMA_THREAD_COUNT];
};

int init_url_schema(url_schema_t& url_schema);
void quit_url_schema(url_schema_t* url_schema);

int add_to_url_schema(void* url);//url_t*  
int remove_from_url_schema(void* url); //url_t*

int exist_in_url_schema(void* url); //url_t*

extern url_schema_t g_url_schema;

#endif
